﻿package net.wangit.user.org;

import net.wangit.framework.cache.Cache;
import net.wangit.framework.util.CacheUtil;

public class OrgCache {

	public OrgCache() {
	}

	public static Org get(String oid) {
		return (Org) getCache().get(oid);
	}

	public static void put(String oid, Org organization) {
		getCache().put(oid, organization);
	}

	public static void clear(String oid) {
		getCache().clear(oid);
	}

	public static void clearAll() {
		getCache().clearAll();
	}

	private static Cache getCache() {
		return CacheUtil.getOrganizationCache();
	}
}
